module ld_post(
  input  [31:0] in,
  input  [ 3:0] sel,
  input  [ 1:0] byte_addr,
  output [31:0] out
);

wire [31:0] mask;
wire [31:0] in_masked;

assign mask =
  {{8{sel[3]}},
   {8{sel[2]}},
   {8{sel[1]}},
   {8{sel[0]}}};
assign in_masked = in & mask;

byte_rotor_r rotor(
  .in(in_masked),
  .rot(byte_addr),
  .out(out)
);

endmodule
